Exception: Curly::InvalidComponent

Inherits:
Error
  • Object
show all
Defined in:
lib/curly/invalid_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component) ⇒ InvalidComponent

Returns a new instance of InvalidComponent



5
6
7
# File 'lib/curly/invalid_component.rb', line 5

def initialize(component)
  @component = component
end

Instance Attribute Details

#componentObject (readonly)

Returns the value of attribute component



3
4
5
# File 'lib/curly/invalid_component.rb', line 3

def component
  @component
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/curly/invalid_component.rb', line 9

def message
  "invalid component `{{#{component}}}'"
end