Seems Like I found a way to do it. ruby step for the functions is
Then /^I should see "([^\"]*)" is pressed$/ do |text|
state = query("button marked:'#{text}'", :isSelected)[0]
state = state.to_i
if state!=1
screenshot_and_raise "Current state is not Pressed for button: #{text}"
end
sleep(STEP_PAUSE)
end
which goes to steps.rb file
and In calabash feature file you can call it
Then I should see "NameBtn" is pressed
If anybody found improvements please add. Thanks