Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/howitzer/helpers.rb

Instance Method Summary collapse

Instance Method Details

#as_page_classObject



64
65
66
# File 'lib/howitzer/helpers.rb', line 64

def as_page_class
  Object.const_get("#{self.capitalize}Page")
end

#givenObject



60
61
62
# File 'lib/howitzer/helpers.rb', line 60

def given
  as_page_class.new
end

#open(*args) ⇒ Object



56
57
58
# File 'lib/howitzer/helpers.rb', line 56

def open(*args)
  as_page_class.open(*args)
end